import request from '@/utils/request'

export function getListPro(params) {
  return request({
    url: '/syProductInfo/',
    method: 'get',
    params
  })
}

export function getInoPro(params) {
  return request({
    url: '/syProductInfo/' + params.productId,
    method: 'get',
    params
  })
}

export function getListProPage(params) {
  return request({
    url: '/syProductInfo/page',
    method: 'get',
    params
  })
}

export function updatePro(params) {
  return request({
    url: '/syProductInfo/update',
    method: 'post',
    params
  })
}

export function createPro(params) {
  return request({
    url: '/syProductInfo/insert',
    method: 'post',
    params
  })
}

export function deletePro(params) {
  return request({
    url: '/syProductInfo/delete',
    method: 'post',
    params
  })
}
